
{{partial('public/header')}}

<div class="midder">
<div class="mc">
	<h1>{{seo.title}}-{{strAlbum['albumname']}}</h1>
	<div class="cleft">
    	{% if visitor['userid'] == strAlbum['userid'] %}
            <div class="pl photitle">
            <span class="fr">
            &nbsp;&gt;&nbsp;<a href="{{url('space/photos/edit/'~strAlbum['albumid'])}}">修改相册属性</a>
            &nbsp;&gt;&nbsp;<a href="{{url('space/photos/upload/'~strAlbum['albumid'])}}">添加照片</a>
            &nbsp;&gt;&nbsp;<a href="{{url('space/photos/info/'~strAlbum['albumid'])}}">批量修改</a>
            &nbsp;&gt;&nbsp;<a href="{{url('space/'~strUser['doname']~'/photos')}}">返回我的相册首页</a>
            </span>
            </div>
        {% else %}
        	<div class="pl photitle">
            <span class="fr">&gt; <a href="{{url('space/'~strUser['doname']~'/photos')}}">返回{{strUser['username']}}的相册首页</a></span>
            </div>
        {% endif %}

        {% if arrPhoto is empty%}
        	{% if visitor['userid'] == strAlbum['albumid'] %}
            <br>
            <p class="pl">这个相册现在还没有照片 , 你可以<b><a href="{{url('space/photos/upload/'~strAlbum['albumid'])}}">添加照片</a></b></p>
            {% else %}
            <br>
            <p class="pl">这个相册现在还没有照片</p>
            {% endif %}
        {% endif %}

        <div class="photolst clearfix">
        	{% for key, item in arrPhoto %}
            	{% if key == 0 %}
                <div class="photo_wrap">
                    <a title="{{item['photodesc']}}" class="photolst_photo" href="{{url('space/photos/show/'~item['photoid'])}}">
                    <img src="{{item['simg']}}">
                    </a><br>
                    <div class="pl">{{sub_str(item['photodesc'],50)}}</div>
                    <div style="color:#999">
                    <a href="{{url('space/photos/show/'~item['photoid'])}}#comment">{{item['count_comment']}} 回应</a>
                    </div>
                </div>
			   {% else %}
                    <div class="photo_wrap">
                        <a title="{{item['photodesc']}}" class="photolst_photo" href="{{url('space/photos/show/'~item['photoid'])}}">
                        <img src="{{item['simg']}}">
                        </a><br>
                        <div class="pl">{{sub_str(item['photodesc'],50)}}</div>
                        <div style="color:#999">
                        <a href="{{url('space/photos/show/'~item['photoid'])}}#comment">{{item['count_comment']}} 回应</a>
                        </div>
                    </div>               
                   {% if key%3 == 2 %}
                    <div class="clear"></div>
                   {% endif %}
               {% endif %}
            {% endfor %}
        </div>
    	<div class="page">{{pageUrl}}</div>
    </div><!--//cleft-->
    <div class="cright">
    		{% if visitor['userid'] != strUser['userid'] %}
            <div class="mod mod-usercard"> 
              <div class="pic">
                  <a href="{{url('space/'~strUser['doname'])}}"><img width="48" height="48" alt="{{strUser['username']}}" src="{{strUser['face_48']}}"></a>
              </div>
              <div class="content">
                <a href="{{url('space/'~strUser['doname'])}}">{{strUser['username']}}</a>
                    <span class="usercard-loc">({{strUser['area']['areaname']}})</span>
                <p>{{sub_str(strUser['about'],80)}}</p>
                {% if strUser['isfollow'] %}
                <div class="ft">
                    <span class="usercard-followed">已关注</span>
                    粉丝{{strUser['count_followed']}}人
                </div>                
                {% else %}
                <div class="ft">
                    <a class="lnk-contact-add"  href="{{url('space/contact/userfollow/'~strUser['userid'])}}">关注此人</a>
                    粉丝{{strUser['count_followed']}}人
                </div>
                {% endif %}
              </div>
            </div>
            {% endif %}	 

            <div class="mod">       
                <h2>最新回应 &nbsp; ·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;</h2>
                <ul class="photocom">
                {% for item in arrNewComment%}
                    <li>
                        <div class="pic"><a href="{{url('space/'~item['user']['doname'])}}">
                        <img src="{{item['user']['face_48']}}"></a></div>
                        <div class="piccomment">
                            <p><a href="{{url('space/photos/show/'~item['typeid'])}}">{{item['user']['username']}} : 
                            {{sub_str(clearText(item['content']),60)}}</a></p>
                            <span class="pl">{{date('Y-m-d H:i:s', item['addtime'])}}</span>
                        </div>
                    </li>
                {% endfor %}
                </ul>
            </div>
               
    </div>
</div>
</div>

